import { Controller, Post } from "@nestjs/common";
import { TerminalService } from "./terminal.service";


@Controller('/api')
export class TerminalController {

  constructor(
    private readonly  terminalService: TerminalService
  ) {
  }

  @Post('/terminal')
  async getTerminalPid (): Promise<string> {
    const pid = this.terminalService.getTerminalPid()
    return pid
  }
}
